import QQMapWX from '../common/lib/qqmap-wx-jssdk.js';

let qqmapsdk = new QQMapWX({
  key: 'RJYBZ-V6ZKJ-IPKF5-DCMGQ-CMGSO-NTFMY'
});

export default function addressDatas() {
  return new Promise((resolve, reject) => {
    qqmapsdk.reverseGeocoder({
      success: function (res) {
        resolve(res);
      },
      fail: function (err) {
        reject(err);
      }
    });
  });
}
